import {createRouter,createWebHashHistory} from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import TestPinia from '../views/test/TestPinia.vue'

const router = createRouter({
    history: createWebHashHistory(import.meta.env.BASE_URL),
    routes:[
        {
            path: "/",
            name:"home",
            component: Home
        },{
            path: "/login",
            name:"login",
            component: Login
        },{
            path: "/testpinia",
            name: "testpinia",
            component: TestPinia

        }
    ]
})

//因为他是js文件，不是VUE文件，得把他暴露出去
export  default router;
